package com.xnfh.equipment.viewmodel

import com.xnfh.common.bean.WeatherMessage
import com.xnfh.framework.bean.BaseResp
import com.xnfh.framework.bean.RespStateData
import com.xnfh.network.base.BaseRepository
import com.xnfh.network.manager.ApiManager

/**
 * @Description:
 * @Author: ziheng
 * @CreateDate: 2023/12/27 19:19
 * @UpdateUser: ziheng
 * @UpdateDate: 2023/12/27 19:19
 * @UpdateRemark: 更新说明
 */
class WeatherMessageViewModelRes : BaseRepository() {

    suspend fun requestWeattherMessage(id: String, data: RespStateData<WeatherMessage>) = dealResp(
        { ApiManager.api.requestWeatherMessage(id) }, data
    )

}